package com.chatplus.application.domain.request;

import com.chatplus.application.enumeration.ProductTypeEnum;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 产品保存更新请求参数
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ProductSaveRequest implements Serializable {


    /**
     * id : 6
     * created_at : 0
     * updated_at : 1706152074
     * name : 测试
     * price : 222
     * discount : 333
     * days : 111
     * calls : 222
     * img_calls : 333
     * enabled : true
     * sales : 0
     * sort_num : 0
     * product_type
     */

    @JsonProperty("id")
    private Long id;
    @JsonProperty("name")
    private String name;
    @JsonProperty("price")
    private BigDecimal price;
    @JsonProperty("discount")
    private BigDecimal discount;
    @JsonProperty("days")
    private int days;
    @JsonProperty("chat_calls")
    private Integer chatCalls;
    @JsonProperty("img_calls")
    private Integer imgCalls;
    @JsonProperty("enabled")
    private boolean enabled;
    @JsonProperty("sales")
    private int sales;
    @JsonProperty("sort_num")
    private int sortNum;
    @JsonProperty("product_type")
    private ProductTypeEnum productType;
}
